#pragma once
#include "vcomplexwidget.h"
#include "esflow/baiscobj.h"
class VESFlow :
    public VComplexWidget
{
public:
    VESFlow(void);
    ~VESFlow(void);

public:
    void init();
    void setEnvironmentBeforeRender() const;
    void setEnvironmentAfterRender() const;

    void mouseDown(int x, int y);
    void mouseUp(int x, int y);

    void move(int x, int y);
    void resize(int w, int h);

public:
    bool render() const;
    bool loadTextures();
    void scrollLeft();
    void scrollRight();


protected:
    baiscobj* _baseobj;
    int _oldx;
    bool _pressdown;
    int  _id;
};
